<template>
	<view class="content" :style="'background:'+publicTextColor.pagebgColor+';'">
		<view class="topTitle" :style="'top:'+zhuangtai+'px'">
			<image class="back" @click="backClick" :src="publicimg.backimg" mode=""></image>
			<view class="" style="font-size: 32rpx;">
				邀请海报
			</view>
		</view>
		<image style="width: 750rpx;height: 100%;" :src="poster" mode="widthFix"></image>
	</view>
</template>

<script>
	var cssjs = require('@/js/cssjs.js')
	var imagejs = require('@/js/imagejs.js')
	var util = require('@/js/util.js')
	export default {
		data() {
			return {
				publicTextColor:'',
				publicimg:imagejs.publicimg,
				zhuangtai:0,
				poster:''
			};
		},
		onShow() {
			this.getList()
			let that = this
			let aniosgaodu = 0
			uni.getSystemInfo({
				success: function(res) {
					console.log(res);
					that.zhuangtai = res.statusBarHeight;
					var a = res.model.split(' ');
					if (a[0] == 'iPhone') {
						aniosgaodu = 44;
					} else {
						aniosgaodu = 48;
					}
					that.zhuangtai = parseInt(that.zhuangtai)+4
					console.log(that.zhuangtai)
				}
			});
		},
		onLoad() {
			this.setcolorConfig()
			
		},
		methods:{
			getList(){
				let _self = this
				uni.request({
					url: util.getUrl("member/poster"),
					header: {
						'content-type': 'application/x-www-form-urlencoded',
						'Authori-zation':uni.getStorageSync("token")
					},
					method: 'POST',
					success: res => {
						if(res.data.code == 1){
							_self.poster = res.data.data.poster
						}
					},
				});
			},
			setcolorConfig(){
				this.publicTextColor = this.$store.state.publicTextColor
			},
			backClick(){
				uni.navigateBack({
					
				})
			}
		}
	}
</script>

<style lang="scss">
	.content{
		height: 100vh;
		width: 750rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		box-sizing: border-box;
	}
	.topTitle{
		color: #FFFFFF;
		display: flex;
		align-items: center;
		height: 67rpx;
		justify-content: center;
		position: absolute;
		z-index: 10;
		width: 100%;
		.back{
			width: 20rpx;
			height: 31rpx;
			position: absolute;
			left: 31rpx;
		}
	}
</style>
